Generalize spotlight activity scripts to support any process - #43
Merged
Merged
Conversation
…-monitor-live Add opendirectoryd and CrowdStrike Falcon presets alongside spotlight, since the underlying fs_usage-based approach works for any process.
Under set -o pipefail, head closing its stdin early after N lines sends SIGPIPE upstream, and bash reports that as the pipeline's exit status even though the final command (awk) exits 0. Never showed at Spotlight-scale (short captures, low volume) but a 120s Falcon capture tripped it every time, killing the script right after the first section.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
spotlight-analyze-activity/spotlight-monitor-liveintoproc-analyze-activity/proc-monitor-live, since the underlyingfs_usageapproach isn't Spotlight-specificopendirectorydandfalcon(CrowdStrike) presets alongsidespotlight, selectable via-p/--preset;-f/--patternstill takes a raw process pattern for anything else[duration] [pattern]) still work, so existing muscle memory and any saved commands keep workingTest plan
com.crowdstrike.falcon.Agentandopendirectorydnpm run format:checkpasses🤖 Generated with Claude Code